package com.example.back.jpa;

import com.example.common.entity.Hospital;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.javers.spring.annotation.JaversSpringDataAuditable;

@JaversSpringDataAuditable
public interface HospitalRepository  extends JpaRepository<Hospital,Long> {
    @Query(value = "select * from h_hospital order by id_bigint desc limit 0,1",nativeQuery = true)
    Hospital findByLast();    
}
